package com.liam.design.decorator.decoratorConcrete;


import com.liam.design.decorator.component.Drink;
import com.liam.design.decorator.decorator.DrinkDecorator;

/**
 * 具体装饰者，用于扩展ConcreteComponent
 *
 * 珍珠奶茶
 */
public class Pearl extends DrinkDecorator {
    public Pearl(Drink drink) {
        super(drink);
    }

    @Override
    public String getName() {
        return super.getName() + "+珍珠";
    }

    @Override
    public double getPrice() {
        return super.getPrice() + 5;
    }
}
